toggle menu
JxBrowser
8.2.1
jvm
switch theme
search in API
JxBrowser
/
com.teamdev.jxbrowser.net
/
[jvm]ContentType
Content
Type
public
interface
ContentType
A parsed
Content-Type
header value.
Since
7.33
Members
Types
Builder
Link copied to clipboard
public
final
class
Builder
A builder of
ContentType
.
Functions
boundary
Link copied to clipboard
public
Optional
<
String
>
boundary
(
)
Returns the boundary specified in the
Content-Type
header or an empty
Optional
if the header does not contain a boundary.
charset
Link copied to clipboard
public
Optional
<
String
>
charset
(
)
Returns the charset specified in the
Content-Type
header or an empty
Optional
if the header does not contain a charset.
media
Type
Link copied to clipboard
public
String
mediaType
(
)
Returns the media type (the MIME type) specified in the
Content-Type
header.
new
Builder
Link copied to clipboard
public
static
ContentType.Builder
newBuilder
(
String
mediaType
)
Create a new
ContentType
builder.